<?php
//自媒体api
//print_r($reslt);exit;
if(is_array($result)&&!empty($result[2])&&$result[2][0]['no']!=""){
  $newarr=array();
  $arr=array();
  for($i=0;$i<count($result[2]);$i++){
     $arr=$result[2][$i];
     $arr['id']=$arr['no'];
     $arr['name']=$arr['title']."-{$arr['no']}";
     $arr['avatar_url']=$arr['thumb'];
     $arr['desc']=$arr['desc'];
     $arr['media_id']=$arr['no'];
     $arr['home_url']=$arr['url'];
     $arr['datasourceurl']=$arr['url'];;
     $newarr[]=$arr;
  }
  if(preg_match("/type=user/",$_REQUEST['s_url'])) jsonpage($newarr);
}
?>